package com.zdx.yswl.ui.task;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

import com.zdx.yswl.Constant;
import com.zdx.yswl.asynctask.BaseHttpTask;
import com.zdx.yswl.base.KException;
import com.zdx.yswl.ui.bean.NewsBean;
import com.zdx.yswl.ui.exception.JSONParseException;
import com.zdx.yswl.ui.exception.NetworkException;
import com.zdx.yswl.ui.exception.NoDataException;
import com.zdx.yswl.ui.http.HttpUtils;

public class ForgetPwdTask extends LoginTask {

	public ForgetPwdTask(Context context, int taskId, TaskDelegate delegate) {
		super(context,taskId, delegate);
	}

	@Override
	protected Object doInBackground(Map<String, Object>... params) {
		
		String str = "";
		try {
			str = HttpUtils.sendPostMethod4Path(Constant.ConfigNet.forget_pwd, params[0], "utf-8");
		} catch (ClientProtocolException e) {
			e.printStackTrace();
			return new NetworkException();
		} catch (IOException e) {
			e.printStackTrace();
			return new NetworkException();
		}
		
		return str;
	}


	@Override
	protected void onPostExecute(Object result) {
		super.onPostExecute(result);
	}
}
